const TokenKey = 'token'
const userName = 'userName'
const userId = 'userId'
const userTel = 'userTel'
const openId = 'openId'
const unionId = 'unionId'
const communityId = 'communityId'
const communityName = 'communityName'
export function getToken () {
  return localStorage.getItem(TokenKey)
}
export function setToken (token) {
  return localStorage.setItem(TokenKey, token)
}
export function removeToken () {
  return localStorage.getItem(TokenKey)
}
export function getUserName () {
  return localStorage.getItem(userName)
}
export function setUserName (token) {
  return localStorage.setItem(userName, token)
}
export function setCommunityId (token) {
  return localStorage.setItem(communityId, token)
}
export function getCommunityId () {
  return localStorage.getItem(communityId)
}
export function setCommunityName (token) {
  return localStorage.setItem(communityName, token)
}
export function getCommunityName () {
  return localStorage.getItem(communityName)
}
export function getUserId () {
  return localStorage.getItem(userId)
}
export function setUserId (token) {
  return localStorage.setItem(userId, token)
}
export function getUserTel () {
  return localStorage.getItem(userTel)
}
export function setUserTel (token) {
  return localStorage.setItem(userTel, token)
}
export function removeUserTel () {
  return localStorage.getItem(userTel)
}
export function getOpenId () {
  return localStorage.getItem(openId)
}
export function setOpenId (token) {
  return localStorage.setItem(openId, token)
}
export function getUnionId () {
  return localStorage.getItem(unionId)
}
export function setUnionId (token) {
  return localStorage.setItem(unionId, token)
}
